package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Description NursingMapper
 * @Author chenchuang
 * @Date 2024-08-25
 */
@Mapper
public interface NursingPlanMapper {

    Page<NursingPlanVo> selectByPage(String name, Integer status);

    void insert(NursingPlan nursingPlan);

    NursingPlanVo getById(Long id);

    void update(NursingPlan nursingPlan);

    void detele(Long id);

    List<NursingPlan> getAll();

    void updateStatus(Long id, Integer status);

    void updateCountAdd(Long planId);

    void updateCountDelete(Long planId);
}
